* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  height: 100vh; /* 确保背景覆盖整个视口 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 1100px;
}

.item {
  width: 160px;
  height: 260px;
  background: linear-gradient(to bottom, #2efde0, #dfffe0);
  padding: 20px 20px;
  text-align: center;
  border-radius: 12px;
  margin-right: 20px;
  margin-bottom: 20px;
}

.avatar {
  background-color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 18px;
}

.code {
  color: black;
  margin: 5px auto;
  width: 52px;
  height: 28px;
  line-height: 20px;
  padding: 5px 10px;
  background-color: #ccc;
  opacity: 0.5;
  border-radius: 7px;
}

.name {
  font-size: 22px;
  margin-bottom: 8px;
}

.type {
  font-size: 13px;
}

img {
  width: 120px;
  height: 120px;
}
